package org.colcon.web.client.ui.deprecated;

import org.colcon.web.client.Collective_Congress;
import org.colcon.web.model.framework.IItem;
import org.colcon.web.model.framework.ITitle;

public class PowerNamePanel extends NamePanel
{
	private String power;
	
	public PowerNamePanel(Collective_Congress client, String title, String power) 
	{
		super(client, title);
		
		this.power = power;
		
		setWidth("300px");
	}
	
	public InfoPanel getInfoPanel(IItem item)
	{
		ITitle title = (ITitle) item;
		
		return new PowerInfoPanel(getClient(), title, title.getPower(power));
	}
}